package org.dromara.pe.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.dromara.common.mybatis.annotation.DataColumn;
import org.dromara.common.mybatis.annotation.DataPermission;
import org.dromara.pe.domain.TaskArrangeInfo;
import org.dromara.pe.domain.bo.TaskArrangeInfoBo;
import org.dromara.pe.domain.vo.TaskArrangeInfoVo;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;

import java.util.Collection;
import java.util.List;

/**
 * 预约排班管理Mapper接口
 *
 * @author Lion Li
 * @date 2024-09-02
 */
public interface TaskArrangeInfoMapper extends BaseMapperPlus<TaskArrangeInfo, TaskArrangeInfoVo> {

    Page<TaskArrangeInfoVo> selectPageTaskArrangeInfoList(@Param("page") Page<TaskArrangeInfo> page , @Param("bo") TaskArrangeInfoBo bo);
    @DataPermission({
        @DataColumn(key = "deptName", value = "pbtc.dept_id"),
    })
    Page<TaskArrangeInfoVo> selectTaskArrangeInfoList(@Param("page") Page<TaskArrangeInfo> page, @Param(Constants.WRAPPER) Wrapper<TaskArrangeInfo> queryWrapper);
    Page<TaskArrangeInfoVo> selectTaskArrangeInfoReviewList(@Param("page") Page<TaskArrangeInfo> page, @Param(Constants.WRAPPER) Wrapper<TaskArrangeInfo> queryWrapper);
    List<TaskArrangeInfoVo> selectTaskArrangeInfoList(@Param(Constants.WRAPPER) Wrapper<TaskArrangeInfo> queryWrapper);
    List<TaskArrangeInfoVo> selectTaskArrangeInfoBoList(@Param("bo") TaskArrangeInfoBo bo);

    void updateValidByIds(@Param("ids") Collection<Long> ids, @Param("status") String status);


}
